#ifndef OBJECT_TREE_ITEM_H
#define OBJECT_TREE_ITEM_H

#include "src/object.h"
#include "treeItem.h"
#include <QMainWindow>

class ObjectTreeItem : public TreeItem {
    public:
        ObjectTreeItem(QTreeWidgetItem * = 0, Object * = 0, unsigned int = 0);
        ~ObjectTreeItem();

        unsigned int getType(){return OBJECT;};

        Object *getObject();

        void select(bool);

        void updateFaces();
        void updateEdges();
        void updateVertices();

    public slots:
        void update();

    private:
        void appendChild();

        Object *obj;
};

#endif
